<script setup>
import { router } from '@/router'

const props = defineProps(['type'])
</script>

<template>
  <div class="flex-col-center h-full">
    <img v-if="type === '403'" src="@/assets/svg/error-403.svg" alt="" class="w-1/3" />
    <img v-if="type === '404'" src="@/assets/svg/error-404.svg" alt="" class="w-1/3" />
    <img v-if="type === '500'" src="@/assets/svg/error-500.svg" alt="" class="w-1/3" />
    <n-button type="primary" @click="router.push('/')">返回首页</n-button>
  </div>
</template>
